/*
 *  Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
 * 
 *       http://stripbandunk.com/
 * 
 *  STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * Form.java
 *
 * Created on Sep 22, 2011, 7:52:15 PM
 */
package com.stripbandunk.tutorial.jlayerdemo;

import javax.swing.JLayer;
import javax.swing.plaf.LayerUI;

/**
 *
 * @author echo
 */
public class Form extends javax.swing.JFrame {

    /** Creates new form Form */
    public Form() {
        initComponents();

        PanelMahasiswa panelMahasiswa = new PanelMahasiswa();
        LayerUI<PanelMahasiswa> layerUI = new MyLayer();
        JLayer<PanelMahasiswa> jLayer = new JLayer<PanelMahasiswa>(panelMahasiswa, layerUI);

        getContentPane().add(jLayer);

        pack();
        setLocationRelativeTo(null);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
